<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印出库单</title>
<link href="Resource/Css/print.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="Resource/Script/Lodop/CheckActivX.js"></script>
<object id="LODOP" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
  <param name="CompanyName" value="常州易奇信息科技有限公司">
  <param name="License" value="664717080837475919278901905623">
</object>
<!-- <script language="javascript" src="Resource/Script/jquery.js"></script>
<script language="javascript" src="Resource/Script/Common.js"></script> -->
{webcontrol type='LoadJsCss' src="Resource/Script/jquery1.10.1.js"}
<!-- {webcontrol type='LoadJsCss' src="Resource/Script/LodopFuncs.js"} -->
{webcontrol type='LoadJsCss' src="Resource/Script/CLodop/LodopFuncs.js"}

<!-- <script language="javascript" src="Resource/Script/{webcontrol type='GetAppInf' varName='PrintCpck'}"></script> -->

{literal}
<script language="javascript">
var tel = "{/literal}{$tel}{literal}";
var obj = {/literal}{$obj|@json_encode}{literal};
// var obj = {/literal}{$obj|@json_encode}{literal};
$(function(){
    window.onload = setTimeout(pre, 1000);  
});
var obj = {/literal}{$obj|@json_encode}{literal};

var pre = function() {
    for(var i=0;obj[i];i++) {
		CreatePrintPage(obj[i],i+1,obj.length);
		// LODOP.PRINT_DESIGN();
		// return false;
		// LODOP.PRINT();
		LODOP.PREVIEW();
	}
	if(window.opener) window.close();else window.location.href=document.referrer; 
}; 
var LODOP;
function CreatePrintPage(obj,cp,tp){
	var perPage=10;//每页行数
	LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
	var title = "成品发货单";
	LODOP.PRINT_INIT(title);
	// LODOP.PRINT_INITA(0,0,869,529,"成品发货单");
	LODOP.SET_PRINT_PAGESIZE(0,2080,1400,"");
	// LODOP.SET_PRINT_STYLE("FontSize",8);
	// LODOP.SET_PRINT_STYLE("Alignment",2);
	// LODOP.SET_PRINT_STYLE("Italic",1);
	LODOP.ADD_PRINT_TEXT(2,188,399,34,obj.title+'送货单');
	LODOP.SET_PRINT_STYLEA(0,"FontSize",17);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
	LODOP.SET_PRINT_STYLEA(0,"Bold",1);

	LODOP.ADD_PRINT_TEXT(34,249,290,20,"筒纱发货结算单(第"+cp+"页/共"+tp+"页)");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",14);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(12,600,172,20,"出库单号："+obj.cpckcode);
	LODOP.SET_PRINT_STYLEA(0,"FontSize",12);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",1);



	//横线
	for(var i=0;i<perPage+2;i++) {
		LODOP.ADD_PRINT_LINE(60+26*i,14,59+26*i,760,0,1);
	}	

	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,14,58,15,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,146,58,146,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,219,58,219,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,337,58,337,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,426,58,426,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,491,58,492,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,581,58,581,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,634,58,634,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,672,58,672,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,724,58,724,0,1);
	LODOP.ADD_PRINT_LINE((perPage+1)*26+58,760,59,760,0,1);
	// LODOP.ADD_PRINT_LINE((perPage+1)*26+58,838,58,839,0,1);

	//基础信息
	LODOP.ADD_PRINT_TEXT(30,17,240,20,"客户："+obj.clientName);
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",1);

	LODOP.ADD_PRINT_TEXT(34,618,161,20,"出库日期:"+obj.dateCpck);
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",1);

	//字段

	LODOP.ADD_PRINT_TEXT(66,15,80,20,"客户单号");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(66,126,108,20,"缸号");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(66,219,99,20,"纱支/规格");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(66,330,87,20,"颜色");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(66,423,70,20,"本厂色号");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.ADD_PRINT_TEXT(66,510,58,25,"客户色");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.SET_PRINT_STYLEA(0,"LineSpacing",-4);
	LODOP.ADD_PRINT_TEXT(66,580,58,25,"投染数");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.SET_PRINT_STYLEA(0,"LineSpacing",-4);
	LODOP.ADD_PRINT_TEXT(66,624,58,25,"件数");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.SET_PRINT_STYLEA(0,"LineSpacing",-4);
	LODOP.ADD_PRINT_TEXT(66,665,68,25,"重量");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.SET_PRINT_STYLEA(0,"LineSpacing",-4);
	LODOP.ADD_PRINT_TEXT(66,720,43,20,"只数");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",2);

	LODOP.SET_PRINT_STYLE("FontSize",10);

	//字段赋值
	for(var i=0;obj.Gang[i];i++) {

		LODOP.ADD_PRINT_TEXT(93+26*i,6,152,20,obj.Gang[i].wareNameBc);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		if(obj.Gang[i].flagScale==true){
           LODOP.SET_PRINT_STYLEA(0,"FontSize",8.5);
		}else{
		   LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
		}
		LODOP.ADD_PRINT_TEXT(93+26*i,125,116,20,obj.Gang[i].vatNum);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,212,126,20,obj.Gang[i].wareName);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,331,95,20,obj.Gang[i].color);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,426,56,20,obj.Gang[i].kuanhao);//本厂色号
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,487,97,20,obj.Gang[i].colorNum);//客户色号
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,577,69,20,obj.Gang[i].cntPlanTouliao);//投料数
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,622,67,20,obj.Gang[i].cntJian);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,665,67,20,obj.Gang[i].jingKg);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		LODOP.ADD_PRINT_TEXT(93+26*i,718,47,20,obj.Gang[i].cntTongzi);
		LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		// LODOP.ADD_PRINT_TEXT(93+26*i,755,88,20,obj.Gang[i].moneyFs);
		// LODOP.SET_PRINT_STYLEA(0,"Alignment",2);
		// LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
		// LODOP.SET_PRINT_STYLEA(0,"Italic",0);

	}
	LODOP.ADD_PRINT_LINE(183+(perPage+1)*26,14,183+(perPage+1)*26,835,0,1);
	LODOP.ADD_PRINT_TEXT(183+(perPage+1)*26,13,750,15,"常州易奇科技(专业开发筒染、色织系统) 联系方式:"+tel);
	LODOP.SET_PRINT_STYLEA(0,"Alignment",3);
	LODOP.ADD_PRINT_TEXT(351,63,780,28,"1、磅码数量颜色如有不符，请速通知，如经使用，本公司概不负责。");
	LODOP.ADD_PRINT_TEXT(65+(perPage+1)*26,49,793,42,obj.memo);
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"Bold",1);
	LODOP.ADD_PRINT_TEXT(65+(perPage+1)*26,13,55,24,"注意：");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",10);
	LODOP.SET_PRINT_STYLEA(0,"LineSpacing",-2);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,17,65,20,"仓管员:");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,71,80,20,obj.senderName);
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	// LODOP.SET_PRINT_STYLEA(0,"TextFrame",2);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,231,65,20,"业务员:");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,284,80,20,'');
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	// LODOP.SET_PRINT_STYLEA(0,"TextFrame",2);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,426,65,20,"送货人:");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,495,80,20,"");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	// LODOP.SET_PRINT_STYLEA(0,"TextFrame",2);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,592,65,20,"收货人:");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	LODOP.ADD_PRINT_TEXT(168+(perPage+1)*26,709,80,20,"");
	LODOP.SET_PRINT_STYLEA(0,"FontSize",11);
	// LODOP.SET_PRINT_STYLEA(0,"TextFrame",2);
	LODOP.ADD_PRINT_TEXT(378,63,722,24,"2、漂染缸号不同，敬请留意使用，如有乱缸，本公司不负责。");
	LODOP.ADD_PRINT_TEXT(404,63,722,20,"3、如有质量问题请在收日通知本公司，否则本公司不负责。");
	LODOP.ADD_PRINT_TEXT(430,63,722,20,"4、如双方有任何纠纷，可在南通当地法院进行仲裁或诉讼，败方承担所有费用。");
	
	return false;

}
</script>
{/literal}
</head>
<body style="margin-top:0px">
<!-- <script language="javascript">CheckLodop();</script> -->
</body>
</html>
